package store.lunangangster.bpmn.model.definition;

import store.lunangangster.bpmn.model.Activity;

public class CompensateEventDefinition extends EventDefinition {

  // default true
  protected boolean waitForCompletion;
  protected Activity activityRef;

  public Activity getActivityRef() {
    return activityRef;
  }

  public void setActivityRef(Activity activityRef) {
    this.activityRef = activityRef;
  }

  public boolean isWaitForCompletion() {
    return waitForCompletion;
  }

  public void setWaitForCompletion(boolean waitForCompletion) {
    this.waitForCompletion = waitForCompletion;
  }

  @Override
  public String getModelType() {
    return "COMPENSATE_EVENT_DEFINITION";
  }
}
